 /* 企业建站相关样式 */
 @import "compass";
 @import "variables";
 @import "./components/tab";
 @import "btnStyle";

.enterprise-order {
  .domain-table {
    tbody {
      tr {
        &:last-child {
          border-bottom: none;
        }
        td {
          padding: 20px 0;
        }
      }
    }
  }
}
.enterprise-setting {
  color: $color6;
  a {
    &:hover,&:focus,&:active {
      text-decoration: none;
    }
  }
   .info {
     line-height: 39px;
     border-bottom: 1px solid $global-border;
     padding-bottom: 20px;
     overflow: hidden;
     .select {
       &.select30 {
         height: 30px;
         border: 1px solid $global-border;
         font-size: 12px;
         color: $color6;
       }
     }
   }

.img-wrap {
  padding: 40px;
  min-height: 400px;
  .margin-auto {
    width: 1000px;
    margin: 0 auto;
    cursor: pointer;
  }
}
}

.enterprise-main {
  .head-icon {
    position: relative;
    padding: 10px 0 20px 40px;
    line-height: 50px;
    font-size: 16px;

    &:before {
      position: absolute;
      top: 20px;
      left: 0;
      z-index: 2;
      content: '';
      display: inline-block;
      width: 30px;
      height: 30px;
      background: url("../images/icon-wordpress.png") no-repeat center/cover;
    }
  }
  .search {
    position: relative;
    width: 100%;
    line-height: 34px;
    height: 34px;
    border: 1px solid #e2e2e2;
    background: #fff;
    .sr-int {
      width: 100%;
      height: 29px;
      padding: 5px 0 0 8px;
      border: none;
      font-size: 12px;
    }

    .sr-btn {
      display: inline-block;
      position: absolute;
      top: 0;
      right: 0;
      z-index: 3;
      width: 38px;
      height: 32px;

      &:before {
        content: '';
        display: inline-block;
        margin: 6px 0 0 10px;
        width: 20px;
        height: 20px;
        background: url("../images/search.png") no-repeat center/contain;
      }
    }
  }
  @include tab();

  .tab-head {
    position: relative;

    li {
      background: $light-gray;
      a {
      font-size: 12px;
      }
      width: 140px;
      &:first-child {
        width: 200px;
      }
      &:nth-child(2) {
        width: 170px;
      }
      span {
        margin-left: 10px;
        background: #eeeeee;
        color: $color6;
      }
    }
  }
  .tab-content {
    border: none;

    .common-box {
      padding-bottom: 60px;

      &-left {
        float: left;
        width: 240px;
        min-height: 400px;
        padding: 20px 15px;
        border: 1px solid $global-border;

        h2 {
          font-size: 14px;
          font-weight: normal;
          line-height: 20px;
          margin: 10px 0;
        }

        .choice-list {
          width: 100%;
          display: flex;
          flex-wrap: wrap;
          flex-direction: row;
          justify-content: flex-start;
          align-items: flex-start;


          li {
            line-height: 30px;
            background: #546070;
            text-align: center;

            &:nth-child(2n) {
              margin-left: 10px;
            }

            a {
              color: #fff;
              font-size: 12px;

              &:hover,&:active,&:focus {
                color: #fff !important;
                text-decoration: none;
                opacity: .7;
              }
            }

            &.choice-list-item2 {
              width: 99px;
              margin-bottom: 10px;
              color: #fff;
              font-size: 12px;
              cursor: pointer;

              &:hover {
                .more-wrap {
                  display: block;
                }
              }
              &.active {
                background: #546070 url("../images/duigou.png") no-repeat 78px center;
              }

              .more-wrap {
                display: none;
                position: absolute;
                top: -50%;
                left: 110%;
                z-index: 4;

                &:before,&:after {
                  position: absolute;
                  content: '';
                  top: 20px;
                  left: -20px;
                  width: 0;
                  height: 0;
                  border: 10px solid transparent;
                  border-right-color: $global-border;
                  z-index: 1;
                }
                &:after {
                  left: -19px;
                  border-right-color: $light-gray;
                  z-index: 2;
                }
                .more {
                  width: 462px;
                  padding: 20px 10px;
                  text-align: left;
                  font-size: 0;
                  background: $light-gray;
                  border: 1px solid $global-border;
                  @include border-radius(3px);

                  a {
                    font-size: 12px;
                    display: inline-block;
                    line-height: 30px;
                    padding: 0 15px;
                    margin-bottom: 10px;
                    margin-right: 10px;
                    border: 1px solid $global-border;
                    background: $light-gray;
                    color: #333;
                    &.active,&:hover{
                      color: #fff;
                      background: $light-blue;
                      border-color: $light-blue;
                    }
                  &:active,&:focus {
                    color: #333 !important;
                  }
                  &:nth-child(5n) {
                      margin-right: 0;
                    }
                  }

                }
              }
            }

            &.choice-list-item5 {
              width: 39px;
              height: 20px;
              margin-bottom: 3px;
              margin-left: 3px;
              cursor: pointer;
              background-position: center;
              background-repeat: no-repeat;
              -webkit-background-size: 30%;
              background-size: 30%;

              &.active,&:hover {
                background-image: url("../images/duigou.png");
              }
              &:nth-child(2n) {
                margin-left: 3px;
              }
              &:nth-child(5n+1) {
                margin-left: 0;
              }

              &.item-red {
                background-color: #FF0000;
              }
              &.item-blue {
                background-color: #0000FF;
              }
              &.item-green {
                background-color: #00FF00;
              }
              &.item-orange {
                background-color: #FFA500;
              }
              &.item-yellow {
                background-color: #FFFF00;
              }
              &.item-purple {
                background-color: #800080;
              }
            }

          }

        }
      }
      &-right {
        padding-left: 260px;
        width: 100%;

        &-nav {
          width: 100%;
          height: 40px;
          .px-list {
            width: 100%;
            font-size: 0;

            li {
              display: inline-block;
              font-size: 14px;

            }

            &-label {
              color: $color9;
            }

            &-item {
              padding: 0 5px;
              line-height: 30px;
              a {
                color: $color3;
                &:hover,&:active,&:focus {
                  text-decoration: none;
                }
              }
              &.active {
                a {
                    color: $text-blue;
                }
              }
            }
          }
        }
        .model-list {
          width: 100%;
          display: flex;
          flex-wrap: wrap;
          flex-direction: row;
          justify-content: flex-start;
          align-items: flex-start;

          &-item {
            width: 290px;
            border: 1px solid $global-border;
            margin: 0 0 20px 20px;

            &:nth-child(3n+1) {
              margin-left: 0;
            }

          }
        }
        .model-con {
          width: 100%;

          dt {
            position: relative;
            width: 100%;
            height: 260px;
            background: #999;

            a {
              width: 100%;
              height: 100%;
              display: inline-block;
              transition: all .2s ease;
              &:hover {
                .hover-txt {
                  visibility: visible;
                }
              }
              .hover-txt {
                visibility: hidden;
                position: absolute;
                bottom: 0;
                left: 0;
                z-index: 2;
                display: inline-block;
                width: 100%;
                background: rgba(0, 0, 0, .5);
                text-align: center;
                color: #fff;
                font-size: 12px;
                cursor: pointer;
                span {
                  float: left;
                  line-height: 40px;
                  &:hover {
                    background: #fff;
                    color: #333;
                  }
                }
                &-all {
                  width: 100%;
                }
                &-left {
                width: 50%;
                }
                &-right {
                  width: 50%;
                  border-left: 1px solid #333;
                }
              }
            }

          }
          dd {
            border-top: 1px solid $global-border;
            .desc {
              padding: 10px;
              line-height: 16px;
              font-size: 12px;
              color: $color6;
              text-align: justify;
              border-bottom: 1px solid $global-border;
            }
            table {
              font-size: 12px;
              width: 100%;
              tbody {
                tr {
                  td {
                    padding: 10px;

                    p {
                      line-height: 20px;
                    }
                    .price {
                      position: relative;
                      background: $bg-orange;
                      font-size: 16px;
                      padding: 5px 15px 5px 25px;

                      &:before {
                        position: absolute;
                        top: 0;
                        left: 0;
                        content: '';
                        display: inline-block;
                        width: 0;
                        height: 0;
                        border: 16px solid transparent;
                        border-left-color: #fff;
                      }

                      a {
                        color: #fff;
                        &:hover {
                          color: rgba(255,255,255,.8) !important;
                        }
                      }

                    }
                  }
                }
              }
            }

          }
        }
      }
    }
  }
}
